Skip to content

Streaming output aligns with progress bar #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

dreampuf
Copy link
Contributor

Alternative to #38. I do not want to block the main thread. This is what I can get. pb.suspend doesn't take a Future. So I have to take care of it by myself. It's kind of twisting between sync and async.

Please let me know if there is a better way.

@aaronriekenberg
Copy link
Owner

aaronriekenberg commented Jul 13, 2025

This change is ok 38b5c06

Thanks for trying the progress bar change. I feel this is too complex now and will be hard to maintain, also I think the performance will be uncertain. Will look to see if there is other/simpler way to do this. For now suggest if using progress bar, you redirect stdout/stderr to output files or disable stdout/stderr as mentioned in the manual:

This is best used for commands which are running for at least a few seconds, and which do not produce output to stdout or stderr.

If you want to make a PR for this change I would merge 38b5c06

@dreampuf
Copy link
Contributor Author

Created another PR. Please feel free to close this one.

@aaronriekenberg
Copy link
Owner

Thanks @dreampuf

@dreampuf dreampuf deleted the fix-streaming-output branch July 28, 2025 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants